package com.example.clock_demo.entitys;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("punch_records")
public class PunchRecord {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id; // 主键ID
    private String teamName; // 班组名字
    private String employeeName; // 姓名
    private String employeeNumber; // 工号
    private LocalDateTime punchTime; // 打卡时间 (包含日期和时间)
    private Boolean isValid; // 是否有效 (true: 有效, false: 无效)
    private String punchDevice; // 打卡设备
}
